package com.gxa.setting.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.gxa.common.base.RespResult;
import com.gxa.setting.entity.SetAccommodationLabel;
import com.gxa.setting.mapper.SetAccommodationLabelMapper;
import com.gxa.setting.service.SetAccommodationLabelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SetAccommodationLabelServiceImpl implements SetAccommodationLabelService {

    @Resource
    private SetAccommodationLabelMapper setAccommodationLabelMapper;

    @Override
    public RespResult queryLabel() {
        QueryWrapper<SetAccommodationLabel> queryWrapper = new QueryWrapper<>();
        List<SetAccommodationLabel> labelList = setAccommodationLabelMapper.selectList(queryWrapper);
        return RespResult.success(labelList);
    }
}
